home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,401 to 2,500
/
aol-file-protocol-4400-2401-to-2500.zip
/
AOLDLs
/
PC Business Library
/
MLM Database Program
/
DHERB.exe
/
HLDEMO
/
SPLASH.SC
< prev
next >
Wrap
Text File
|
1993-09-23
|
4KB
|
106 lines
1 ;The Splshscr script
2 PROC CLOSED SplashScreen()
3 USEVARS autolib
4 line = 3 ;starting line for the text
5 pause = 10 ;controls speed of the animation
6 strlen = 0 ;holds length of longest array string
7 atline = line ;save the line for use later
8 size = 20 ;size of the array
9
10 ;=========================================================
11 margin = 78 ;78 with canvas border
12 ;; margin=79 ;79 without canvas border
13 ;=========================================================
14
15 ARRAY str[size] ;note the trailing spaces on all nonblank lines
16 str[1] = "COMPANY OR APPLICATION NAME"
17 str[2] = "Version Number - Distribution Date"
18 str[3] = ""
19 str[4] = "(C) Your Company's Copyright Notice"
20 str[5] = "All Rights Reserved"
21 str[6] = ""
22 str[7] = "Designed & Written by Steven Berretta"
23 str[8] = "212 522-5146"
24 str[9] = ""
25 str[10] = ""
26 str[11] = ""
27 str[12] = "" ;nulls are skipped, just placeholders
28 str[13] = ""
29 str[14] = ""
30 str[15] = ""
31 str[16] = ""
32 str[17] = ""
33 str[18] = ""
34 str[19] = ""
35 str[20] = "With Special Thanks to Patricia Gilleran"
36 FOR t FROM 1 TO size
37 IF(LEN(STR[t]) > strlen) THEN
38 strlen = LEN(str[t])
39 ENDIF
40 ENDFOR ;Now, strlen holds the length of the longest line
41
42 InitScreenAndLogo(margin, line) ;initialize screen and place logo
43 FOR element FROM 1 TO size
44 SetTheStyle(element)
45 strsiz = 1
46 length = LEN(str[element])
47
48 ;============================================================
49 ; NOTE: Select a FOR loop from the three below.
50 ; Remember to match your FOR loop selection with the
51 ; the selection of "@ atline..." statements below
52 ;------------------------------------------------------------
53 ; Loop 1: center the text --Style 1, line X
54 ; Loop 2: right-justify the text --Style 2, line Y
55 ; Loop 3: left-justify the text --Style 3, line Z
56 FOR column FROM margin TO INT((20+((strlen-length)/2))) STEP -1
57 ;;FOR column FROM margin TO INT((20+(strlen-length))) STEP -1
58 ;; fOR margin TO 20 STEP -1
59 ;=============================================================
60
61 IF(length = 0) THEN
62 QUITLOOP
63 ENDIF
64 IF(CHARWAITING()) THEN ; stop animation if user pressed key
65 z = GETCHAR()
66 CANVAS OFF
67 InitScreenAndLogo(margin, line) ; display graphic
68 atline = line -1
69 FOR element FROM 1 TO size
70 SetTheStyle(element) ; set the color for this element
71 length = LEN(str[element])
72
73 ;============================================================
74 ;Style 1: center the text using column 20 as the left margin
75 ;Style 2: the text is right-justified
76 ;Style 3: the text is left-justified
77 ;------------------------------------------------------------
78 @atline + element, int((20 + ((strlen - length) /2)))
79 ;;@atline + element, int((20 + (strlen - length)))
80 ;;@atline + element, 20
81 ;=============================================================
82
83 ?? str[element]
84 ENDFOR
85 CANVAS ON
86 QUITLOOP
87 EDIF
88 @atline, column
89 IF(strsiz < length) THEN ; show partial string if offscreen
90 ?? SUBSTR( str[element], 1, strsiz)
91 strsiz = strsiz + 1 ; build the string as it moves left
92 ELSE
93 ?? str[element] ;show whole string if not off screen
94 ENDIF
95 SLEEP pause
96 ENDFOR
97 atline = atline + 1
98 ENDFOR
99 WHILE(CHARWAITING() = False)
100 ENDWHILE
101 IF(GETCHAR() = 27) THEN ; if ESC key then quit application